<?php
header('Content-type:text/html;charset=utf-8');

// 引入数据库
$db = require 'db.php';

// 引入函数
require 'functions.php';

$dir = isset($_GET['a'])?$_GET['a']:'index';

$control = "control/".$dir.".php";

if(is_file($control)){
	require $control;
}else{
	echo '非法请求';
}




?>